import Request from "../../../../utils/request.js";
let walletHost = 'app/'
export default class {
  // 银行卡列表
  static banklist(params = {}) {
    return Request({
      url: walletHost+"wallet/center/banklist",
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json;charset=UTF-8"
      },
    })
  }
  // 获取验证码
  static getAcctApply(params = {}) {
    return Request({
      url: walletHost+"wallet/center/openAcctApply",
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }

  //用户信息提交
  static openAcctVerify(params = {}) {
    return Request({
      url: walletHost+"wallet/center/openAcctVerify",
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json;charset=UTF-8"
      },
    })
  }
  //获取是否上传身份证
  static queryIdCardNo(params = {}){
    var accountId = wx.getStorageSync('userId');
    return Request({
      url: "app/user/queryIdCardNo/"+accountId,
      type: "get",
      data: {...params}
    })
  }
 
}
